package ru.paswd.marketprice.storage.receipt.app.exceptions;

import ru.paswd.marketprice.storage.receipt.app.entity.FiscalId;

public class ReceiptException extends RuntimeException {
    public final FiscalId fiscalId;

    public ReceiptException(FiscalId fiscalId) {
        this.fiscalId = fiscalId;
    }

    protected String getArguments() {
        return String.format(
                "{ fiscalNumber = %s, fiscalSign = %s, fiscalDocumentNumber = %s }",
                fiscalId.getNumber(), fiscalId.getSign(), fiscalId.getDocumentNumber());
    }
}
